<?php
if(isset($_SESSION['username'])){
require_once 'dathangcontroller.php';
$controller = new DatHangController();
$controller->invoke();
}else{
    header("location: index.php");
}
?>